package com.liaogui.event;

import com.liaogui.event.service.IOrderService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author liaogui
 * @date 2025/2/9 15:44
 */
@SpringBootApplication
public class EventApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(EventApplication.class, args);
        IOrderService orderService = (IOrderService) applicationContext.getBean("orderServiceImpl");
        orderService.order();
    }
}
